#include"acoral.h"
#include"../include/shell.h"
#include"syscall.h"

enum {
	NEWLIB_STACK_SIZE = 64 * 1024,
};

extern void newlib_testing(void *args);

void dummy(void *args)
{
	int i=0;
	acoral_debugs("test\n");
//	syscall_test2(1,2,3,4,5);

	while(1){
		i++;
//		LedControl(i);
//		acoral_debugs("while,test\n");
		acoral_delay_self(50);
	}
}

void user_main()
{
#ifdef CFG_TELNET_SHELL
	user_telnetd();
#endif
#ifdef CFG_WEB_SERVER
	user_httpd();
#endif

//	acoral_create_thread(dummy,256,NULL,NULL,20,0);
	acoral_create_thread(newlib_testing, NEWLIB_STACK_SIZE, NULL,NULL,20,0);
}
